import { IProduct } from "../store/product";

const products: IProduct[] = [
  { name: '手机', price:3020, remain: 100 },
  { name: '苹果', price:12, remain: 100500 },
  { name: '榨菜', price:16.3, remain: 5620 },
]

export function getProducts() {
  return new Promise<IProduct[]>((resolve) => {
    setTimeout(() => {
      resolve(products)
    }, 1000);
  })
} 